package myschool.dao;

import myschool.entity.Subject;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface SubjectDao {

    int add(Subject s);//增

    int findTotal();//查看个数

    Subject find(int id);//根据课程编号查课程信息

    List<Subject> findAll(Map<String, Integer> map);//分页查课程信息

    List<Subject> findALL(int page, int line);//分页查课程信息

    int update(Subject s);//改

    int delete(int id);//删

}
